<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" :title="mixinEdit_editTitle" width="1300px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>

    <div class="dialogStyleBaseBox" v-loading="mixinEdit_loading">

        <el-form ref="editForm" :model="form" label-width="80px" label-position="left" style="width:100%">

            <div class="main">
                <div class="rr">
                    <WxwebMenu ref="wxwebMenuRef" :form.sync="form" :menuLst="menuLst"></WxwebMenu>
                </div>
                <div class="ll">



                    <el-divider content-position="left">规则配置</el-divider>

                    <el-form-item label="菜单名称" prop="name" :rules="{ required: true, message: '菜单名称 不能为空'}">
                        <el-input v-model="form.name" :maxlength="20"></el-input>
                    </el-form-item>

                    <el-form-item label="是否开启" prop="isOpen">
                        <el-switch v-model="form.isOpen" :active-value="1" :inactive-value="0">
                        </el-switch>
                    </el-form-item>


                    <el-divider content-position="left">过滤条件</el-divider>

                    <el-form-item label="性别">
                        <el-select v-model="form.matchrule.sex">
                            <el-option :value="null" label="不限"></el-option>
                            <el-option :value="1" label="男"></el-option>
                            <el-option :value="2" label="女"></el-option>
                            <el-option :value="0" label="未知"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="客户端">
                        <el-select v-model="form.matchrule.clientPlatformType">
                            <el-option :value="null" label="全部"></el-option>
                            <el-option :value="1" label="ISO"></el-option>
                            <el-option :value="2" label="Android"></el-option>
                            <el-option :value="3" label="其他"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="地区">
                        <SelectAddress :appWindow="appWindow" :value="form.matchrule" @change="selectAddressChange"
                            clean level="city">
                        </SelectAddress>
                    </el-form-item>

                </div>

            </div>
        </el-form>


    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="12" style="text-align: left;">
                <el-button :disabled="mixinEdit_loading" @click="mixinEdit_resetForm('editForm')">重 置</el-button>
            </el-col>
            <el-col :span="12">
                <el-button :disabled="mixinEdit_loading" @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
                <el-button :disabled="mixinEdit_loading" type="primary"
                    @click="mixinEdit_editFormSubmit({model:'form',ref:'editForm'})">确
                    定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>